﻿
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JieBa.NET
{
    public class MyDbContext:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder option)
        {
            //option.UseSqlServer("Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=positionDB");
            option.UseSqlServer("Data Source=172.18.0.120;uid=sa;pwd=sa;database=positionDB");
        }        public DbSet<Position> positions { get; set; }
        
    }
}
